package com.yonglian.management.domain;

import java.util.Random;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;

public class ProjectBaseInfoTestSamples {

    private static final Random random = new Random();
    private static final AtomicLong longCount = new AtomicLong(random.nextInt() + (2 * Integer.MAX_VALUE));
    private static final AtomicInteger intCount = new AtomicInteger(random.nextInt() + (2 * Short.MAX_VALUE));

    public static ProjectBaseInfo getProjectBaseInfoSample1() {
        return new ProjectBaseInfo()
            .id(1L)
            .projectName("projectName1")
            .projectManager("projectManager1")
            .projectLocation("projectLocation1")
            .amount(1);
    }

    public static ProjectBaseInfo getProjectBaseInfoSample2() {
        return new ProjectBaseInfo()
            .id(2L)
            .projectName("projectName2")
            .projectManager("projectManager2")
            .projectLocation("projectLocation2")
            .amount(2);
    }

    public static ProjectBaseInfo getProjectBaseInfoRandomSampleGenerator() {
        return new ProjectBaseInfo()
            .id(longCount.incrementAndGet())
            .projectName(UUID.randomUUID().toString())
            .projectManager(UUID.randomUUID().toString())
            .projectLocation(UUID.randomUUID().toString())
            .amount(intCount.incrementAndGet());
    }
}
